Rnoc\Retainful\Api\AbandonedCart\RestApi D

Total Complexity 139
Dependencies 10
Dependents 1
Total lines 896
Lines of code 442
Logical lines of code 248
Comment lines 300
Methods 48
Properties 24

Methods 48

Method Rating Maintainability Complexity Lines of code
encryptData()
S
54 6 20
isPopupHaveMarketingConsent()
S
56 6 19
changeOrderStatus()
S
58 5 16
getLineItemTotal()
S
62 6 10
formatToIso8601()
S
58 5 15
getCustomerCheckoutDetails()
S
60 5 13
getUserAcceptLanguage()
S
61 5 11
getClientIp()
S
55 4 22
initStorage()
S
60 4 15
setCartToken()
S
59 4 14
markOrderAsRecovered()
S
60 4 12
isBuyerAcceptsMarketing()
S
62 4 11
generateCartHash()
S
62 4 11
getRetainfulApiUrl()
S
68 4 6
getUserAgent()
S
67 4 7
setCartCreatedDate()
S
65 4 9
__construct()
S
70 4 6
setCustomerBillingDetails()
S
64 4 10
setSessionShippingDetails()
S
64 4 10
retrieveCartToken()
S
62 3 11
generateCartToken()
S
56 2 17
isOrderHasValidOrderStatus()
S
58 2 16
canTrackAbandonedCarts()
S
70 3 6
isSmsConsent()
S
65 3 8
isPendingRecovery()
S
68 3 7
userCartCreatedAt()
S
66 3 8
convertToCurrency()
S
71 3 6
getCartToken()
S
67 2 8
syncCart()
S
65 2 9
decryptData()
S
62 2 10
refreshFragmentsOnPageLoad()
S
74 2 4
considerFailedAsAbandoned()
S
74 2 4
getAddressMapFields()
S
60 1 15
retrieveUserIp()
S
67 2 8
isOrderInPendingRecovery()
S
68 2 7
isOrderRecovered()
S
68 2 7
considerCancelledAsAbandoned()
S
74 2 4
considerOnHoldAsAbandoned()
S
74 2 4
removeSessionShippingDetails()
S
81 1 3
getCurrentCurrencyCode()
S
75 1 4
removeSessionBillingDetails()
S
81 1 3
hashTheData()
S
75 1 4
formatDecimalPriceRemoveTrailingZeros()
S
70 1 6
formatDecimalPrice()
S
73 1 5
isValidOrderStatusToResetCartToken()
S
75 1 4
formatUserIP()
S
74 1 4
getClientDetails()
S
71 1 6
getRecoveryLink()
S
67 1 7